package com.example.smart.ui.activity.home

import com.example.lib.extend.setOnDoubleClickListener
import com.example.smart.R
import com.example.smart.base.ui.activity.BaseCameraActivity
import com.example.smart.databinding.ActivityNavigationBinding
import com.google.zxing.Result
import com.king.camera.scan.AnalyzeResult

class NavigationActivity : BaseCameraActivity<ActivityNavigationBinding>() {

    override fun getPreviewView() = binding.ScanFullPreviewView

    override fun layoutID() = R.layout.activity_navigation

    override fun initListener() {
        binding.ScanFullBack.setOnDoubleClickListener {
            finish()
        }
    }

    override fun onScanResultCallback(result: AnalyzeResult<Result>) {
        stopScan()
    }

}